import { Subject } from "rxjs";

const subject: Subject<any> = new Subject()


export function next<T>(data: T) {
    subject.next(data)
}

export function getSubject() {
    return subject.asObservable()
}
